/* 客户名称 配置时动作属性值CustomerName*/
const userInfo = JSON.parse(sessionStorage.getItem('crm3-userinfo'))
const staffId = userInfo ? userInfo.staffId : ''
export default {
	dialogType: 'LIST', //'LIST|TREE',
	dialogContent: {
		tableForm: {
			data: {
				custName: "",
				oldPartyCode: "",
			},
			items: [{
					field: "custNameLike",
					title: "客户名称",
					itemRender: {
						name: "$input",
						props: {
							placeholder: "请输入"
						},
					},
				},
				{
					field: "oldPartyCode",
					title: "客户编码",
					itemRender: {
						name: "$input",
						props: {
							placeholder: "请输入"
						},
						options: []
					},
				},
			],
		},
		tableColumn: [{
				field: "custName",
				title: "客户名称",
				treeNode: null,
				width: null,
				slots: {
					default: 'custName_default',
				}
			},
			{
				field: "oldPartyCode",
				slots: null,
				title: "客户编码",
				treeNode: null,
				width: null
			},
			{
				field: "custAddr",
				slots: null,
				title: "客户地址",
				treeNode: null,
				width: null
			},
			{
				field: "regionName",
				slots: null,
				title: "归属地",
				treeNode: null,
				width: null
			},
		],
		tableData: [],
		submitKey: 'custId', //回传字段
		showKey: 'custName', //显示字段
		contentRequest: {
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/qryCustList`,
			paramsType: 'json',
			defaultParams: {
				searchFlag: 3,
				empeeId: staffId,
				custName: '',
				oldPartyCode: ''
			}
		},
		optionRequests: []
	}

}